package vn.pdg.zoombie.ui;

import vn.pdg.zoombie.ui.adapter.ImageAdapter;
import android.os.Bundle;
import android.view.View;
import android.widget.Gallery;
import android.widget.ListView;

public class HomeActivity extends BaseActivity {
	//dsadsa
	private Gallery zombieGallery;
	private ImageAdapter zombiaAdapter;
	private ListView listCommunity;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.homelayout);
		loadControl();
	}

	public void loadControl() {
		super.loadControl();
		dataApplication.setHomeActivity(true);
		layoutMenu.setBackgroundResource(R.drawable.menu_home);
		titleLayout.setBackgroundResource(R.drawable.title_home);
		zombieGallery = (Gallery) findViewById(R.id.zombier_gallery);
		zombiaAdapter = new ImageAdapter(HomeActivity.this);
		zombieGallery.setAdapter(zombiaAdapter);
		
		listCommunity=(ListView)findViewById(R.id.homeCommunitylist);

	}

	@Override
	public void onClick(View aVa) {
		super.onClick(aVa);

	}
	
	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		dataApplication.setHomeActivity(true);
		super.onResume();
	}
}